﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace ChanTai.WebApi.Exceptions
{
    /// <summary>
    /// 异常经过
    /// </summary>
    public class WarningException : Exception
    {
        /// <summary>
        /// 构造
        /// </summary>
        public WarningException()
        {
        }
        /// <summary>
        /// 构造
        /// </summary>
        /// <param name="message">错误信息</param>
        public WarningException(string message) : base(message)
        {
        }

        /// <summary>
        /// 构造
        /// </summary>
        /// <param name="message">错误信息</param>
        /// <param name="innerException">级联异常</param>
        public WarningException(string message, Exception innerException) : base(message, innerException)
        {
        }

        /// <summary>
        /// 构造
        /// </summary>
        /// <param name="info">错误信息</param>
        /// <param name="context">环境</param>
        protected WarningException(SerializationInfo info, StreamingContext context) : base(info, context)
        {
        }
    }
}
